/*
* payoutDetails vuex store
* */
import {findAllPayout} from "@/api/payout";

const state={
    payoutDetails:[],
}
const actions={
    async payoutDetails(context,userid){
        const result = await findAllPayout(userid);
        context.commit('PAYOUTDETAILS',result)
    }
}
const mutations={
    PAYOUTDETAILS(state,value){
        state.payoutDetails=value;
    }
}

export default{
    state,
    actions,
    mutations
}